Higher-Order Leak and Deadlock Free Locks

نویسندگان

چکیده

Reasoning about concurrent programs is challenging, especially if data shared among threads. Program correctness can be violated by the presence of races—whose prevention has been a topic concern both in research and practice. The Rust programming language prime example, putting slogan fearless concurrency practice not only employing an ownership-based type system for memory management, but also using its to enforce mutual exclusion on data. Locking, unfortunately, comes at price deadlocks access may cause leaks . This paper develops theory deadlock leak freedom higher-order locks setting. Higher-order allow sharing basic values other channels, are themselves first-class citizens. based notion topology , administrating who permitted what point program. first acyclic topologies, instantiated λ-calculus with message-passing concurrency. then extends calculus support circular dependencies dynamic lock orders, which we illustrate version Dijkstra’s dining philosophers problem. Well-typed resulting calculi shown free leaks, proofs mechanized Coq proof assistant.

برای دانلود باید عضویت طلایی داشته باشید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Deadlock-Free Channels and Locks

The combination of message passing and locking to protect shared state is a useful concurrency pattern. However, programs that employ this pattern are susceptible to deadlock. That is, the execution may reach a state where each thread in a set waits for another thread in that set to release a lock or send a message. This paper proposes a modular verification technique that prevents deadlocks in...

متن کامل

Types for Deadlock-Free Higher-Order Concurrent Programs

Deadlock freedom is for concurrent programs what progress is for sequential ones: it indicates the absence of stable (i.e., irreducible) states in which some pending operations cannot be completed. In the particular case of communicating processes, operations are inputs and outputs on channels and deadlocks may be caused by mutual dependencies between communications. In this work we define an e...

متن کامل

A First-Order Leak-Free Masking Countermeasure

One protection of cryptographic implementations against sidechannel attacks is the masking of the sensitive variables. In this article, we present a first-order masking that does not leak information when the registers change values according to some specific (and realistic) rules. This countermeasure applies to all devices that leak a function of the distance between consecutive values of inte...

متن کامل

Higher-order Cons-free Interpreters

Constructor rewriting systems are said to be cons-free if any constructor term occurring in the rhs of a rule must be a subterm of the lhs of the rule. Roughly, such systems cannot build new data structures during their evaluation. In earlier work by several authors, (typed) cons-free systems have been used to characterise complexity classes such as polynomial or exponential time or space by va...

متن کامل

Bending and Free Vibration Analysis of Functionally Graded Plates via Optimized Non-polynomial Higher Order Theories

Optimization concept in the context of shear deformation theories was born for the development of accurate models to study the bending problem of structures. The present study seeks to extend such an approach to the dynamic analysis of plates. A compact and unified formulation with non-polynomial shear strain shape functions (SSSFs) is employed to develop a static and free vibration analysis of...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2023

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3571229